import { createI18n } from "vue-i18n";
import zh from './zh'
import en from './en'


const defaultLocale = localStorage.getItem('locale') || 'zh'
const i18n = createI18n({
    locale: defaultLocale,
    allowComposition: true,
    globalInjection: true,
    silentFallbackWarn: true,
    silentTranslationWarn: true, //去除警告信息
    messages: {
        en: en,
        zh: zh
    }
})

export default i18n 
